const api = {
	checkOrder: '/order/checkOrder',
	getAddrList:'/order/getAddrList',
	get_addr_detail:'/order/get_addr_detail',
	saveAddress:'/order/saveAddress',
	set_default_addr:'/order/set_default_addr',
	get_default_addr:'/order/get_default_addr',
	del_addr:'/order/del_addr',
	submitOrder:'/order/submitOrder',
	payOrder:'/order/payOrder',
	query_order:'/order/query_order',
	getOrderList:'/order/getOrderList',
	getOrderDetail:'/order/getOrderDetail',
	cancel_order:'/order/cancel_order',
	shouhuo:'/order/shouhuo',
	saveOrderEvaluateAdd:'/order/saveOrderEvaluateAdd',
	del_order:'/order/del_order',
	wuliu:'/order/wuliu',
	send:'/order/send'
}
//发货 此操作为开发时使用 操作完删掉
export const sendApi = (data) => {
	return uni.$u.http.post(api.send,data)
}
//查看物流
export const wuliuApi = (data) => {
	return uni.$u.http.post(api.wuliu,data)
}
//删除订单
export const sdelOrderApi = (data) => {
	return uni.$u.http.post(api.del_order,data)
}
//提交评价
export const saveOrderApi = (data) => {
	return uni.$u.http.post(api.saveOrderEvaluateAdd,data)
}
//确认收货
export const shouhuoApi = (data) => {
	return uni.$u.http.post(api.shouhuo,data)
}
// 取消订单
export const cancelOrderApi = (data) => {
	return uni.$u.http.post(api.cancel_order,data)
}
// 订单详情
export const getOrderDetailApi = (data) => {
	return uni.$u.http.post(api.getOrderDetail,data)
}
//订单列表
export const getOrderListApi = (data) => {
	return uni.$u.http.post(api.getOrderList,data)
}
// 查询订单
export const queryOrderApi = (data) => {
	return uni.$u.http.post(api.query_order,data)
}
//支付订单
export const payOrderApi = (data) => {
	return uni.$u.http.post(api.payOrder,data)
}
//提交订单
export const submitOrderApi = (data) => {
	return uni.$u.http.post(api.submitOrder,data)
}
//删除地址
export const deladdrApi = (data) => {
	return uni.$u.http.post(api.del_addr,data)
}
//获取默认收货地址
export const getdefaultApi = (data) => {
	return uni.$u.http.post(api.get_default_addr,data)
}
//设置默认收货地址
export const setdefaultApi = (data) => {
	return uni.$u.http.post(api.set_default_addr,data)
}
//保存收货地址信息
export const saveAddrApi = (data) => {
	return uni.$u.http.post(api.saveAddress,data)
}
// 获取收货地址详情
export const getdetailApi = (data) => {
	return uni.$u.http.post(api.get_addr_detail,data)
}
// 获取收货地址列表
export const getAddrApi = (data) => {
	return uni.$u.http.post(api.getAddrList,data)
}
// 确认订单
export const checkOrderApi = (data) => {
	return uni.$u.http.post(api.checkOrder,data)
}